import React from "react";
import { Route, IndexRoute } from "react-router";

import Dashboard from "../component/home/Dashboard.jsx"
import Index from "../container/model/IndexCtr";
import Add from "../container/model/AddCtr";
import Detail from "../container/model/DetailCtr";

const modelRouter = (
    <Route key="model" path="model" component={ Dashboard }>
        <IndexRoute component={ Index } />
        <Route path="new" component={ Add } />
        <Route path=":code" component={ Detail } />
    </Route>
);

export default modelRouter;